package com.gitee.hljdrl.dialog.visitor;

import android.app.Dialog;
import android.content.Context;
import android.view.View;

import com.gitee.hljdrl.dialog.R;
import com.gitee.hljdrl.dialog.UIDialog;


public class PromptVisitor extends BasisViewPartVisitor implements View.OnClickListener {

    //------------------------------------------
    public PromptVisitor(Context context) {
        super(context);
        setLayout(R.layout.dialog_prompt_part);
        setDialogTheme(R.style.UIDialogNoAnim);
    }

    @Override
    public void onViewVisit(Dialog dialog, View view) {
        super.onViewVisit(dialog, view);
    }

    @Override
    protected Dialog createDialog(Context context, int theme) {
        UIDialog dialog = new UIDialog(context, theme);
        dialog.setViewPartVisitor(this);
        return dialog;
    }

}
